<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="/furniture/front/component/js/head.js"></script>
</head>
<body>
    <div style="margin: 0 auto; width: 400px;"> 
        <h2>您还未登录，请先登录</h2>
        <p><span id="con">3</span>秒后页面跳转<p>
    </div>
</body>

<script>
     var con = document.getElementById("con");
     var i = 3;
     var num = 0;
     timer = setInterval(function(){
             num = --i;
             if(num<=0){
                     clearInterval(timer);
                     var s = PATH+"/back/login.jsp";
                     console.log(s)
                     location = s;
             }
             con.innerHTML = num;
     },1000);

</script>
</html>